#define _CRT_SECURE_NO_WARNINGS  1
#include"RBTree.h"
#include"Mymap.h"
#include"Myset.h"

int main()
{
	int arr[] = { 4,2,1,3,5,8,91,0 };
	Mymap<int, int> m;
	for (auto ch : arr)
	{
		m.Insert(make_pair(ch,ch));
	}
	
	auto it = m.begin();
	while (it != m.end())
	{
		cout << it->first <<' ';
		++it;
	}
	cout << endl;

	Myset<int> s;
	for (auto ch : arr)
	{
		s.Insert(ch);
	}

	auto sit = s.begin();
	while (sit != s.end())
	{
		cout << *sit << ' ';
		++sit;
	}
	
	return 0;
}